package absfactory;

//生产过程
public class Factory implements IFactory {
    @Override
    public ICar1 getCar1() {
        return new Car1();
    }

    @Override
    public ICar2 getCar2() {
        return new Car2();
    }
}
